package com.tengju.bff.interfaces.manage.crm.motivation.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author: 李大仙
 * @date: 2021/7/22 3:40 下午
 */
@Data
@ApiModel(value = "AddMotivationActivityConfigForm", description = "新增激励活动管理")
public class AddMotivationActivityConfigForm {

    @ApiModelProperty(value = "活动Id")
    private Long activityId;

    @ApiModelProperty(value = "活动名称")
    @NotBlank(message = "活动名称不能为空")
    @Length(max = 50, message = "活动名称长度不能超过50个字")
    private String title;

    @ApiModelProperty(value = "活动类型")
    @NotNull(message = "活动类型不能为空")
    private Integer objectType;

    @ApiModelProperty(value = "活动备注")
    @Length(max = 500, message = "活动备注长度不能超过500个字")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
}
